function [ S ] = makeMoveAction(S, action)
    S = makeMove(S, S.legalMoves{S.nextPiece+1}(action, 1), S.legalMoves{S.nextPiece+1}(action, 2));
end